<?php
namespace app\api\validate\haipi;
use think\Validate;

class Comment extends Validate{
    protected $rule = [
        'content|评论内容'   =>'require|length:4,200',
        'article_id'   =>'require|number',
        'parent_id' =>'number',
        'article_type'  =>'require',
    ];

    
    protected $message = [
        'content.length' => '评论内容在最少4个字符，最多200个字符'
      ];
}